{% extends "base.html" %}
{% block title %}{{ block.super }} Register{% endblock %}
{% block main_content %}
	<div id="center_column_login">
		{% if errors %}
			<div id="gen_error_message">
				Errors:
				<ul>
					{% if fblank_error %}<li>All Fields are required, you left at least one blank.</li>{% endif %}
					{% if username_mult %}<li>The username you requested is already in use, please choose another.</li>{% endif %}
					{% if email_mult %}<li>The email you requested is already in use, please choose another.</li>{% endif %}
					{% if password_error %}<li>Passwords do not match.</li>{% endif %}
					{% if email_error %}<li>Emails do not match.</li>{% endif %}
					{% if email_valid_error %}<li>Email is not valid.</li>{% endif %}
					
				</ul>
			</div>
		{% endif %}
		<span class="title">Register:</span><br />
		
		<form action="http://fblaconnection.com/register/" method="post" id="register" accept-charset="utf-8">
			<table width="300" border="0">
			  <tr>
			    <td align="right">First Name: </td>
			    <td><input type="text" name="first_name" value="{{ f_name }}" class="register_text populate" title="First Name" /></td>
			  </tr>
			  <tr>
			    <td align="right">Last Name: </td>
			    <td><input type="text" name="last_name" value="{{ l_name }}" class="register_text populate" title="Last Name" /></td>
			  </tr>
			  <tr>
			    <td align="right">User Name: </td>
			    <td><input type="text" name="username" value="{{ username }}" class="register_text populate" title="Prefered Username" /></td>
			  </tr>
			  <tr>
			    <td align="right">Your Email: </td>
			    <td><input type="text" name="email" value="{{ email }}" class="register_text populate" title="Your Email" /></td>
			  </tr>
			  <tr>
			    <td align="right">Confirm Email: </td>
			    <td><input type="text" name="confirm_email" value="{{ c_email }}" class="register_text populate" title="Confirm Email" /></td>
			  </tr>
			  <tr>
			    <td align="right">Password: </td>
			    <td><input type="password" name="password" value="" class="register_text" /></td>
			  </tr>
			  <tr>
			    <td align="right">Confirm Password:</td>
			    <td><input type="password" name="confirm_password" value="" class="register_text" /></td>
			  </tr>
			  <tr>
			    <td align="right">Select Grade:</td>
			    <td>
					<select name="grade" class="register_text">
						<option value="9">Freshman</option>
						<option value="10">Sophomore</option>
						<option value="11">Junior</option>
						<option value="12">Senior</option>
						<option value="13">Graduated</option>
					</select>
				</td>
			  </tr>
		  	  <tr>
			    <td></td>
			    <td>
					<input type="submit" class="register_button" value="Sign Up" />
				</td>
			  </tr>
			</table>
		</form>
	</div>
{% endblock %}